package io.itit.ecp.admin.server.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.itit.grass.common.server.entity.BaseTenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;


/**
 * 轮播图
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = true)
@TableName("ecp_tt_mini_program_carouse_img")
public class MiniProgramCarouseImageEntity extends BaseTenantEntity {

    private String name;

    private String logo;

    /**
     * 位置(1:广告页，2:首页)
     */
    private String position;

    /**
     * 类型(1:无，2:外链)
     */
    private String type;

    /**
     * 外链地址
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String link;

    /**
     * true: 启用，false:禁用
     */
    private Boolean status;

    private Integer sort;

}
